package com.bestcem.xm.qdes.controller.param;

import com.alibaba.fastjson.annotation.JSONField;
import com.bestcem.xm.common.core.annotation.XmGetQueryWebProperty;
import com.bestcem.xm.common.core.annotation.XmSqlInjection;
import com.bestcem.xm.common.core.domain.base.UserBaseInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 题目库-添加模板-问卷项目选项列表
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "题目库-添加模板-问卷项目选项列表")
@Data
public class QuestionLibProjectParam extends UserBaseInfo {

    /**
     * 问卷状态，未开始-0；已发布-1；已结束-2；
     */
    @ApiModelProperty("问卷状态，未开始-0；已发布-1；已结束-2；")
    private String status;

    /**
     * 关键词
     */
    @ApiModelProperty("关键词")
    private String title;
    /**
     * 文件夹id
     */
    @XmGetQueryWebProperty(value = "folder_id")
    @JSONField(name = "folder_id")
    private String folderId;

    /**
     * 类型
     */
    private String category;

    /**
     *
     */
    private String permissions;

    /**
     * 已读状态
     */
    @XmGetQueryWebProperty(value = "badge_status")
    @JSONField(name = "badge_status")
    private String badgeStatus;

    /**
     *
     */
    @XmGetQueryWebProperty(value = "perm_type")
    @JSONField(name = "perm_type")
    private String permType;

    @XmGetQueryWebProperty(value = "project_id")
    @JSONField(name = "project_id")
    private String projectId;

    /**
     * 查询类型
     */
    @ApiModelProperty("查询类型")
    @XmGetQueryWebProperty(value = "search_type")
    @JSONField(name = "search_type")
    private String searchType;

    /**
     * 排序规则
     */
    @ApiModelProperty("排序规则")
    @XmGetQueryWebProperty(value = "new_sort")
    @XmSqlInjection
    @JSONField(name = "new_sort")
    private String newSort;

    @XmGetQueryWebProperty(value = "top_order")
    @JSONField(name = "top_order")
    private String topOrder;
}
